<include file="Public:index_header" />
<div class="area-category">
    <div class="title">
        <span>群众信箱</span>
        <span class="fr" style="margin-right:10%;">
            <button onclick="location.href='/Home/index/leaveMsg'" class="btn btn-page">我要留言</button>
        </span>
    </div>
    <div class="list" style="margin: 0 auto;text-align: center;width:90%;">
        <volist name="list" id="vo">
        <table class="gridview" width="100%">
            <tr>
                <th colspan="2" class="tl">主题：（{$category[$vo[category]]}）{$vo.title}</th>
            </tr>
            <tr>
                <th width="10%" class="tl">来信群众：</th>
                <td class="tl">{$vo.name} （{$vo.ctime|date='Y-m-d',###}）</td>
            </tr>
            <tr>
                <th class="tl">详细内容：</th>
                <td class="tl">{$vo.content}</td>
            </tr>
            <tr>
                <th class="tl">答复人：</th>
                <td class="tl">{$vo.replier}</td>
            </tr>
            <tr>
                <th class="tl">答复内容：</th>
                <td class="tl">{$vo.reply}</td>
            </tr>
        </table>
        </volist>
        <div style="width:100%;border-top:1px solid #ccc;height:50px;margin:0 auto;
            margin-top:20px;padding-top:10px;">
                <span class="fl">
                    <button onclick="location.href='/Home/index/msg?page={$pages.firstPage}'" class="btn btn-page">第一页</button>
                    <button onclick="location.href='/Home/index/msg?page={$pages.prevPage}'" class="btn btn-page">前一页</button>
                    <button onclick="location.href='/Home/index/msg?page={$pages.nextPage}'" class="btn btn-page">后一页</button>
                    <button onclick="location.href='/Home/index/msg?page={$pages.lastPage}'" class="btn btn-page">最后一页</button>
                </span>
                <span class="fr">
                    <span>第{$pages.curPage}页 共{$pages.totalPage}页</span>
                    <select name="pageList">
                        <volist name="pages.pageList" id="vo">
                            <if condition="$vo eq $pages.curPage ">
                                <option selected="selected" value="{$vo}">第{$vo}页</option>
                            <else />
                                <option value="{$vo}">第{$vo}页</option>
                            </if>
                        </volist>
                    </select>
                </span>
        </div>
    </div>
</div>
<script>
    $("select[name=pageList]").change(function () {
        location.href='/Home/index/msg?page='+$(this).val();
    });
</script>
<include file="Public:index_footer" />